<?php /* Smarty version 2.6.20, created on 2016-07-19 15:19:54
         compiled from ./moving/index.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'rights', './moving/index.php', 4, false),array('block', 'shops', './moving/index.php', 13, false),array('block', 'movingPaper', './moving/index.php', 34, false),array('modifier', 'default', './moving/index.php', 17, false),array('modifier', 'date_format', './moving/index.php', 17, false),array('function', 'url', './moving/index.php', 70, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/top.php", 'smarty_include_vars' => array('subject' => 'moving')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "moving/top.php", 'smarty_include_vars' => array('subject' => 'moving')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="content">
<?php $this->_tag_stack[] = array('rights', array('right' => 'moving_create')); $_block_repeat=true;smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><ul id="addmenu"><li style="display: inline;"><a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=moving.php&uri=create">添加调拨单</a></li></ul><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_rights($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
    <div id="boxquery">
    <form method="get">
    	<input type="hidden" name="m" value="inventory" />
        <input type="hidden" name="s" value="moving.php" />
        <input type="submit" value="提交" class="fr" />
        <li>
        	调拨单ID:&nbsp;<input name="paper_id" value="<?php echo $_GET['paper_id']; ?>
"/>
        </li>
        <li>仓库:&nbsp; <select id="shopid_from" name="shopid_from"><option></option><?php $this->_tag_stack[] = array('shops', array()); $_block_repeat=true;smarty_block_shops($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><option value="<?php echo $this->_tpl_vars['shops']['id']; ?>
" <?php if ($this->_tpl_vars['shops']['id'] == $_GET['shopid_from']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['shops']['title']; ?>
</option><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_shops($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></select>
        -> <select id="shopid_to" name="shopid_to"><option></option><?php $this->_tag_stack[] = array('shops', array()); $_block_repeat=true;smarty_block_shops($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><option value="<?php echo $this->_tpl_vars['shops']['id']; ?>
" <?php if ($this->_tpl_vars['shops']['id'] == $_GET['shopid_to']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['shops']['title']; ?>
</option><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_shops($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></select></li>
        <li class="yui-skin-sam">时间:&nbsp; 
            <input id="sdate" name="sdate" type="text" size="12" value="<?php echo $_GET['sdate']; ?>
" onfocus="lockinput(this)" />
            <input id="edate" name="edate" type="text" size="12" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_GET['edate'])) ? $this->_run_mod_handler('default', true, $_tmp, time()) : smarty_modifier_default($_tmp, time())))) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
" onfocus="lockinput(this)" />
            <div id="calContainer" style="display:none; position:absolute;"></div>
        </li>
    </form>
    </div>

    <table width="100%" border="0" cellspacing="0" cellpadding="5" id="lister">
      <tr id="title">
        <td width="40">ID</td>
        <td>仓库</td>
        <td>调拨单名称</td>
        <td>备注</td>
        <td>状态</td>
        <td>添加人</td>
        <td>添加时间</td>
        <td>&nbsp;</td>
      </tr>
      <?php $this->_tag_stack[] = array('movingPaper', array('limit' => 20,'pager' => 'pager','page' => $this->_tpl_vars['segment']['1'],'path' => $this->_tpl_vars['segment']['1'],'order' => 'id desc','shopid_from' => $_GET['shopid_from'],'shopid_to' => $_GET['shopid_to'],'title' => $_GET['title'],'sdate' => $_GET['sdate'],'edate' => $_GET['edate'],'paper_id' => $_GET['paper_id'],'counter' => 1)); $_block_repeat=true;smarty_block_movingPaper($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
      <tr id="content">
        <td><?php echo $this->_tpl_vars['movingPaper']['id']; ?>
</td>
        <td><?php echo $this->_tpl_vars['movingPaper']['shop_from']; ?>
 -> <?php echo $this->_tpl_vars['movingPaper']['shop_to']; ?>
</td>
        <td><?php echo $this->_tpl_vars['movingPaper']['title']; ?>
</td>
        <td><?php echo $this->_tpl_vars['movingPaper']['admin_remark']; ?>
</td>
        <td>
			<?php if ($this->_tpl_vars['movingPaper']['status'] == '0'): ?>未审核<?php endif; ?>
			<?php if ($this->_tpl_vars['movingPaper']['status'] == '1'): ?>已审核<?php endif; ?>
			<?php if ($this->_tpl_vars['movingPaper']['status'] == '2'): ?>已确认<?php endif; ?>
			<?php if ($this->_tpl_vars['movingPaper']['status'] == '9'): ?>已入库<?php endif; ?>
        </td>
        <td><?php echo $this->_tpl_vars['movingPaper']['create_user']; ?>
</td>
        <td><?php echo $this->_tpl_vars['movingPaper']['create_time']; ?>
</td>
        <td align="right">&nbsp;
        <a id="paper_<?php echo $this->_tpl_vars['movingPaper']['id']; ?>
" href="javascript:void(0);" onclick="show_moving_paper_sku_list(<?php echo $this->_tpl_vars['movingPaper']['id']; ?>
);" act="show">查看</a>
        <?php if ($this->_tpl_vars['movingPaper']['status'] == '0'): ?>
        <a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=moving.php&uri=audit&paperId=<?php echo $this->_tpl_vars['movingPaper']['id']; ?>
" onclick="return confirm('审核通过后将不能再删除, 确定?')">审核</a>
        <?php endif; ?>
        <?php if ($this->_tpl_vars['movingPaper']['status'] == '1'): ?>
        <a href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=moving.php&paperId=<?php echo $this->_tpl_vars['movingPaper']['id']; ?>
&uri=confirm" onclick="return confirm('确认通过后将不能再编辑, 确定?')">确认</a>
        <?php endif; ?>
        <?php if ($this->_tpl_vars['movingPaper']['status'] < '2'): ?>
        <a href='<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=moving.php&uri=settingProductList&paperId=<?php echo $this->_tpl_vars['movingPaper']['id']; ?>
&<?php echo $this->_tpl_vars['cond']; ?>
'><img src="/image/admin/set.png" /></a>
        <?php endif; ?>
        </td>
      </tr>
      <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_movingPaper($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
      <?php if ($this->_tpl_vars['pager']->rows == 0): ?>
      <tr id="content">
        <td colspan="20">&nbsp;</td>
      </tr>
      <?php endif; ?>
    </table>
    <div id="pager" class="mt10">
		<?php if ($this->_tpl_vars['pager']): ?>共<?php echo $this->_tpl_vars['pager']->rows; ?>
条记录 第<?php echo $this->_tpl_vars['pager']->pagecurrent; ?>
/<?php echo $this->_tpl_vars['pager']->pages; ?>
页 <?php endif; ?> 		
        <?php if ($this->_tpl_vars['pager']->current > 1): ?><a href="<?php echo smarty_function_url(array('s1' => 1), $this);?>
">首页</a><?php endif; ?>
        <?php if ($this->_tpl_vars['pager']->current > 1): ?><a href="<?php echo smarty_function_url(array('s1' => $this->_tpl_vars['pager']->current-1), $this);?>
">上页</a><?php endif; ?>
        <?php if ($this->_tpl_vars['pager']->current < $this->_tpl_vars['pager']->pages): ?><a href="<?php echo smarty_function_url(array('s1' => $this->_tpl_vars['pager']->current+1), $this);?>
">下页</a><?php endif; ?>
        <?php if ($this->_tpl_vars['pager']->current < $this->_tpl_vars['pager']->pages): ?><a href="<?php echo smarty_function_url(array('s1' => $this->_tpl_vars['pager']->pages), $this);?>
">尾页</a><?php endif; ?>
    </div>
	<p>&nbsp;</p>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/bottom.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>